package com.citic.netty.common.protocol.response;

import com.citic.netty.common.protocol.Command;
import com.citic.netty.common.protocol.Packet;

public class JoinGroupResponsePacket extends Packet {
	
	private static final long serialVersionUID = 1L;

	private String groupId;

    private boolean success;

    private String reason;

    public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	@Override
    public Byte getCommand() {
        return Command.JOIN_GROUP_RESPONSE;
    }
}